Skip to content

Commit

Permalink
testssh, ananicy-cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor committed Jun 21, 2024
1 parent 5521adb commit c809f98
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules-overlays/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

nixpkgs.overlays = [
(final: prev: {
bcachefs-tools = inputs.bcachefs-tools.packages.${pkgs.system}.bcachefs-tools;
# bcachefs-tools = inputs.bcachefs-tools.packages.${pkgs.system}.bcachefs-tools;
})
];
}
3 changes: 2 additions & 1 deletion system/services/ananicy-cpp.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{pkgs, ...}: {
{pkgs, pkgs-edge, ...}: {
# Enable Ananicy CPP for better system performance
services.ananicy = {
enable = true;
package = pkgs-edge.ananicy-cpp;
# from nixpkgs: ananicy-rules-cachyos
rulesProvider = pkgs.ananicy-cpp-rules.overrideAttrs (prevAttrs: {
patches = [
Expand Down
5 changes: 1 addition & 4 deletions system/services/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
./apparmor.nix
./console-tty.nix
./gnome-keyring.nix
./gnupg-ssh.nix
]
++ lib.optionals systemSettings.containers [./containers.nix];

Expand Down Expand Up @@ -69,10 +70,6 @@
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};

# List services that you want to enable:

Expand Down
1 change: 1 addition & 0 deletions system/services/gnome-keyring.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
services.gnome.gnome-keyring.enable = true;
security.pam.services.gdm-password.enableGnomeKeyring = true; # load gnome-keyring at startup
programs.seahorse.enable = true; # enable the graphical frontend for managing
# NOTE: GNOME keyring does not enable a ssh agent/GPG agent in NixOS
}
16 changes: 16 additions & 0 deletions system/services/gnupg-ssh.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
# GPG agent for managing GPG keys and SSH agent emulation
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
# disable the above if you want to use gpg-agent
# environment.sessionVariables.SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/ssh-agent";
/*
programs.ssh.extraConfig = ''
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
'';
*/
}

0 comments on commit c809f98

Please sign in to comment.