fix gnome-keyring
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, namespace, ... }:
|
{ config, lib, pkgs, namespace, options, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.${namespace}.gnome-keyring;
|
cfg = config.${namespace}.gnome-keyring;
|
||||||
@@ -8,28 +8,16 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.gnome-keyring = {
|
services.gnome.gnome-keyring.enable = true;
|
||||||
enable = true;
|
|
||||||
components = [ "secrets" "ssh" ];
|
# PAM configuration for automatic keyring unlock
|
||||||
};
|
|
||||||
# If using SDDM:
|
|
||||||
security.pam.services.sddm.enableGnomeKeyring = true;
|
security.pam.services.sddm.enableGnomeKeyring = true;
|
||||||
# Also generally useful for other login methods
|
|
||||||
security.pam.services.login.enableGnomeKeyring = true;
|
security.pam.services.login.enableGnomeKeyring = true;
|
||||||
# If using GDM:
|
|
||||||
security.pam.services.gdm.enableGnomeKeyring = true;
|
security.pam.services.gdm.enableGnomeKeyring = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
gnome.seahorse # Provides a GUI for managing the keyring
|
seahorse # GUI for managing the keyring
|
||||||
];
|
gcr # Keyring integration
|
||||||
|
|
||||||
environment.variables = {
|
|
||||||
# Ensure GNOME Keyring is used for SSH keys
|
|
||||||
SSH_AUTH_SOCK = "${pkgs.gnome-keyring}/run/gnome-keyring-ssh-socket";
|
|
||||||
PASSWORD_STORE = "gnome-libsecret";
|
|
||||||
};
|
|
||||||
my-namespace.home.home.packages = with pkgs; [ # Ensure keyring integration in home environments
|
|
||||||
gcr
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -51,8 +51,7 @@
|
|||||||
displayManager.defaultSession = "gnome";
|
displayManager.defaultSession = "gnome";
|
||||||
desktopManager.plasma6.enable = true;
|
desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
# Enable GNOME Keyring and KDE KWallet integration
|
|
||||||
my-namespace.gnome-keyring.enable = true;
|
|
||||||
|
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true; # Enable the deprecated X11 teletype terminal connection system.
|
enable = true; # Enable the deprecated X11 teletype terminal connection system.
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ in
|
|||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
my-namespace.gnome-keyring.enable = true;
|
||||||
users.users.andreas = {
|
users.users.andreas = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Andreas Schaafsma";
|
description = "Andreas Schaafsma";
|
||||||
|
|||||||
Reference in New Issue
Block a user