abstract gpg

This commit is contained in:
Daylin Morgan 2024-01-29 10:43:35 -06:00
parent 275b5ca82a
commit b75cef08ef
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
6 changed files with 15 additions and 21 deletions

View file

@ -2,7 +2,7 @@
inputs,
pkgs,
...
}:{
}: {
imports = with inputs.self.nixosModules; [
docker
];
@ -18,7 +18,7 @@
(pkgs.writeShellScriptBin "gitea" ''
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
'')
'')
];
# https://francis.begyn.be/blog/nixos-restic-backups
@ -42,9 +42,4 @@
isNormalUser = true;
};
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
}

View file

@ -19,8 +19,4 @@
};
users.users.daylin.extraGroups = ["docker"];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
}

View file

@ -25,6 +25,7 @@
rclone
quarto
];
programs.hyprland.enable = true;
services.vpn.enable = true;
@ -36,11 +37,6 @@
paths = ["/home/daylin/stuff/" "/home/daylin/dev/"];
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
users.users.daylin.extraGroups = [
"audio"
];

View file

@ -10,6 +10,7 @@
dev
nvim
vpn
gpg
# gui
fonts

View file

@ -8,9 +8,9 @@
cfg = config.desktop;
in {
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
# vscode
vscode-fhs
];
};
environment.systemPackages = with pkgs; [
# vscode
vscode-fhs
];
};
}

6
modules/security/gpg.nix Normal file
View file

@ -0,0 +1,6 @@
{...}: {
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
}