!rGlCMuXgAhgEpdvJUz:nixos.org

NixOS KDE

217 Members
59 Servers

Load older messages


SenderMessageTime
30 Jul 2024
@mjm:midna.devmjmthen yeah there's probably a user service that needs to be started15:11:02
@thefossguy:matrix.orgPratham Patelwhich one?15:12:52
@mjm:midna.devmjmi don't know15:13:28
@mjm:midna.devmjmi use plasma so things get handled correctly out of the box15:13:46
@k900:0upti.meK900 plasma-kwallet-pam, according to the sources 15:13:52
@thefossguy:matrix.orgPratham Patel

--user?

15:14:08
@k900:0upti.meK900Yes15:15:06
@k900:0upti.meK900 And do not systemctl enable it 15:15:10
@k900:0upti.meK900Because that will break when the store paths change15:15:15
@thefossguy:matrix.orgPratham Patel
 cat /run/current-system/sw/share/systemd/user/plasma-kwallet-pam.service
20:45:02|
--------+
[Unit]
Description=Unlock kwallet from pam credentials
PartOf=graphical-session.target
Before=plasma-plasmashell.service plasma-kded6.service
After=plasma-kwin_wayland.service plasma-kcminit.service

[Service]
ExecStart=/nix/store/53prdsd3na325rwg80f1w9bc1k9nlmff-kwallet-pam-6.0.5/libexec/pam_kwallet_init
Type=simple
Slice=background.slice
Restart=no
15:15:28
@thefossguy:matrix.orgPratham Pateloh well, i was already executing that pam_init thingy from a shellscript that was called by bash, didn't work so called it before everything from hyprland, that didn't work either and calling it at the very end from hyprland doesn't work either15:16:12
@k900:0upti.meK900Check PAM logs?15:16:55
@thefossguy:matrix.orgPratham Patel

aaaaaaaaa

-- Boot feb9acb032d5416fb9147e674873a02c --
Jul 30 20:39:33 indra systemd[1]: systemd 255.6 running in system mode (+PAM +AUDIT -SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK -XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified)
Jul 30 20:39:34 indra (systemd)[1231]: pam_unix(systemd-user:session): session opened for user pratham(uid=1000) by (uid=0)
Jul 30 20:39:37 indra sddm-helper[1673]: [PAM] Starting...
Jul 30 20:39:37 indra sddm-helper[1673]: [PAM] Authenticating...
Jul 30 20:39:37 indra sddm-helper[1673]: [PAM] returning.
Jul 30 20:39:37 indra (systemd)[1680]: pam_unix(systemd-user:session): session opened for user sddm(uid=175) by (uid=0)
Jul 30 20:39:48 indra sddm-helper[1730]: PAM unable to dlopen(/nix/store/xv5gzxvrkmsc3s6la4h81ng17wd9pzm6-kwallet-6.2.1/lib/security/pam_kwallet5.so): /nix/store/xv5gzxvrkmsc3s6la4h81ng17wd9pzm6-kwallet-6.2.1/lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
Jul 30 20:39:48 indra sddm-helper[1730]: PAM adding faulty module: /nix/store/xv5gzxvrkmsc3s6la4h81ng17wd9pzm6-kwallet-6.2.1/lib/security/pam_kwallet5.so
Jul 30 20:39:48 indra sddm-helper[1730]: [PAM] Starting...
Jul 30 20:39:48 indra sddm-helper[1730]: [PAM] Authenticating...
Jul 30 20:39:48 indra sddm-helper[1730]: [PAM] Preparing to converse...
Jul 30 20:39:48 indra sddm-helper[1730]: [PAM] Conversation with 1 messages
Jul 30 20:39:48 indra sddm-helper[1730]: [PAM] returning.
Jul 30 20:39:48 indra sddm-helper[1730]: pam_unix(sddm:session): session opened for user pratham(uid=1000) by (uid=0)
Jul 30 20:39:48 indra sddm-helper[1673]: [PAM] Closing session
Jul 30 20:39:48 indra sddm-helper[1673]: [PAM] Ended.
Jul 30 20:39:51 indra wireplumber[1937]: [0:00:19.686900214] [1937]  INFO IPAManager ipa_manager.cpp:143 libcamera is not installed. Adding '/nix/store/src/ipa' to the IPA search path
15:18:37
@thefossguy:matrix.orgPratham Patellooking at it for the first time15:18:52
@thefossguy:matrix.orgPratham Patel

/nix/store/xv5gzxvrkmsc3s6la4h81ng17wd9pzm6-kwallet-6.2.1/lib/security/pam_kwallet5.so doesn't exist on disk

15:19:34
@thefossguy:matrix.orgPratham Pateldependency issue?15:19:38
@thefossguy:matrix.orgPratham Patel

well /nix/store/xv5gzxvrkmsc3s6la4h81ng17wd9pzm6-kwallet-6.2.1/lib exists but not /nix/store/xv5gzxvrkmsc3s6la4h81ng17wd9pzm6-kwallet-6.2.1/lib/security

15:21:59
@thefossguy:matrix.orgPratham Patel

ah found it, it's set in nixpkgs

$ rg '/lib/security/pam_kwallet5.so' /etc/nixpkgs/channels/nixpkgs/
/etc/nixpkgs/channels/nixpkgs/nixos/modules/security/pam.nix
725:              { name = "kwallet"; enable = cfg.kwallet.enable; control = "optional"; modulePath = "${cfg.kwallet.package}/lib/security/pam_kwallet5.so"; }
860:          { name = "kwallet"; enable = cfg.kwallet.enable; control = "optional"; modulePath = "${cfg.kwallet.package}/lib/security/pam_kwallet5.so"; }
15:26:23
@mjm:midna.devmjm security.pam.services.login.kwallet.package = pkgs.kdePackages.kwallet; 15:27:44
@mjm:midna.devmjmthis is wrong15:27:46
@mjm:midna.devmjm should be pkgs.kdePackages.kwallet-pam 15:27:54
@mjm:midna.devmjmthat's what is set for plasma615:28:04
@mjm:midna.devmjmhttps://github.com/NixOS/nixpkgs/blob/b73c2221a46c13557b1b3be9c2070cc42cf01eb3/nixos/modules/services/desktop-managers/plasma6.nix#L26715:28:14
@thefossguy:matrix.orgPratham Patelah you're right15:29:33
@thefossguy:matrix.orgPratham Patel

this change doesn't seem to work for tty logins

# git diff nixos-configuration/
diff --git a/nixos-configuration/includes/display-server/hyprland.nix b/nixos-configuration/includes/display-server/hyprland.nix
index 5309133..bb10061 100644
--- a/nixos-configuration/includes/display-server/hyprland.nix
+++ b/nixos-configuration/includes/display-server/hyprland.nix
@@ -8,7 +8,7 @@
   services.hypridle.enable = true;
 
   security.pam.services.login.kwallet.enable = true;
-  security.pam.services.login.kwallet.package = pkgs.kdePackages.kwallet;
+  security.pam.services.login.kwallet.package = pkgs.kdePackages.kwallet-pam;
   services.xserver.displayManager.lightdm.enable = lib.mkForce false;
 
   environment.variables = {
15:34:37
@thefossguy:matrix.orgPratham Pateltrying sddm15:34:52
@thefossguy:matrix.orgPratham Patellogging in from sddm doesn't work either :(15:41:43
@sandro:supersandro.deSandro 🐧
In reply to @mjm:midna.dev
yeah this was discussed in here yesterday, it's fixed in master
do you have a link?
15:45:01
@mjm:midna.devmjmi don't, sorry15:45:12
@thefossguy:matrix.orgPratham Patel
-- Boot 1435f0517bea465fa7e1ef75a8e97329 --
Jul 30 21:10:36 indra systemd[1]: systemd 255.6 running in system mode (+PAM +AUDIT -SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK -XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified)
Jul 30 21:10:37 indra (systemd)[1229]: pam_unix(systemd-user:session): session opened for user pratham(uid=1000) by (uid=0)
Jul 30 21:10:40 indra sddm-helper[1672]: [PAM] Starting...
Jul 30 21:10:40 indra sddm-helper[1672]: [PAM] Authenticating...
Jul 30 21:10:40 indra sddm-helper[1672]: [PAM] returning.
Jul 30 21:10:40 indra (systemd)[1679]: pam_unix(systemd-user:session): session opened for user sddm(uid=175) by (uid=0)
Jul 30 21:11:03 indra sddm-helper[1732]: [PAM] Starting...
Jul 30 21:11:03 indra sddm-helper[1732]: [PAM] Authenticating...
Jul 30 21:11:03 indra sddm-helper[1732]: [PAM] Preparing to converse...
Jul 30 21:11:03 indra sddm-helper[1732]: [PAM] Conversation with 1 messages
Jul 30 21:11:03 indra sddm-helper[1732]: pam_kwallet5(sddm:auth): pam_kwallet5: pam_sm_authenticate
Jul 30 21:11:03 indra sddm-helper[1732]: [PAM] returning.
Jul 30 21:11:03 indra sddm-helper[1732]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Jul 30 21:11:03 indra sddm-helper[1732]: pam_unix(sddm:session): session opened for user pratham(uid=1000) by (uid=0)
Jul 30 21:11:03 indra sddm-helper[1672]: [PAM] Closing session
Jul 30 21:11:03 indra sddm-helper[1672]: [PAM] Ended.
Jul 30 21:11:03 indra sddm-helper[1732]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
Jul 30 21:11:03 indra sddm-helper[1746]: pam_kwallet5: final socket path: /run/user/1000/kwallet5.socket
Jul 30 21:11:05 indra wireplumber[1942]: [0:00:31.523604245] [1942]  INFO IPAManager ipa_manager.cpp:143 libcamera is not installed. Adding '/nix/store/src/ipa' to the IPA search path
15:45:36

Show newer messages


Back to Room ListRoom Version: 9