mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-07 03:34:08 +09:00
git
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
./fcitx5
|
./fcitx5
|
||||||
./ghostty
|
./ghostty
|
||||||
./git
|
./git
|
||||||
./gnupg.nix
|
./gnupg
|
||||||
./grok.nix
|
./grok.nix
|
||||||
./greetd.nix
|
./greetd.nix
|
||||||
./ly
|
./ly
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.my.applications.gnupg;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.my.applications.gnupg = {
|
|
||||||
enable = lib.mkEnableOption "GnuPG agent";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
programs.gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
enableSSHSupport = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.applications.gnupg;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./home.nix
|
||||||
|
./system.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
options.my.applications.gnupg = {
|
||||||
|
enable = lib.mkEnableOption "GnuPG agent";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
my.applications.gnupg.system.enable = lib.mkDefault true;
|
||||||
|
my.applications.gnupg.homeManager.enable = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
hmCfg = config.my.applications.gnupg.homeManager;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.applications.gnupg.homeManager = {
|
||||||
|
enable = lib.mkEnableOption "GnuPG home-manager configuration";
|
||||||
|
};
|
||||||
|
|
||||||
|
config.home-manager.sharedModules = [
|
||||||
|
{
|
||||||
|
config = lib.mkIf hmCfg.enable {
|
||||||
|
services.gpg-agent.enable = false;
|
||||||
|
services.gpg-agent.enableSshSupport = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.applications.gnupg.system;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.applications.gnupg.system = {
|
||||||
|
enable = lib.mkEnableOption "GnuPG system configuration";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -20,16 +20,10 @@ in
|
|||||||
pkgs.openssh
|
pkgs.openssh
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.user.services.ssh-agent = {
|
|
||||||
Unit.Description = "OpenSSH authentication agent";
|
|
||||||
Service = {
|
|
||||||
ExecStart = "${pkgs.openssh}/bin/ssh-agent -D -a %t/ssh-agent";
|
|
||||||
};
|
|
||||||
Install.WantedBy = [ "default.target" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.sockets.gcr-ssh-agent.Install.WantedBy = lib.mkForce [ ];
|
systemd.user.sockets.gcr-ssh-agent.Install.WantedBy = lib.mkForce [ ];
|
||||||
|
|
||||||
|
services.ssh-agent.enable = true;
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
SSH_AUTH_SOCK = "\${XDG_RUNTIME_DIR}/ssh-agent";
|
SSH_AUTH_SOCK = "\${XDG_RUNTIME_DIR}/ssh-agent";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -16,5 +16,8 @@ in
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
openssh # OpenSSH client and server
|
openssh # OpenSSH client and server
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.ssh.startAgent = true;
|
||||||
|
services.gnome.gcr-ssh-agent.enable = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user