fix keyring-startup

This commit is contained in:
Jose 2025-09-17 23:56:55 -03:00
parent 67c46a0988
commit df4df8e78b
5 changed files with 31 additions and 3 deletions

View file

@ -13,6 +13,7 @@
./user/ios.nix
./system/docker.nix
./system/pipewire.nix
./system/keyring.nix
];

2
sh.nix
View file

@ -9,7 +9,7 @@ let
debian-up = "wg-quick up laptopdell";
debian-down = "wg-quick down laptopdell";
dotfiles = "cd ~/.dotfiles";
intel_top = "sudo intel_gpu_top";
};
in
{

25
system/keyring.nix Normal file
View file

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
{
# Auto login will attempt to unlock gnome keyring using LUKS passphrase.
# See https://github.com/NixOS/nixpkgs/pull/282317
boot.initrd.systemd.enable = lib.mkForce true;
security.pam.services.gdm-autologin.text = lib.mkForce ''
auth requisite pam_nologin.so
auth required pam_succeed_if.so uid >= 1000 quiet
${lib.optionalString config.security.pam.services.login.enableGnomeKeyring ''
auth [success=ok default=1] ${pkgs.gdm}/lib/security/pam_gdm.so
auth optional ${pkgs.gnome-keyring}/lib/security/pam_gnome_keyring.so
''}
auth required pam_permit.so
account sufficient pam_unix.so
password requisite pam_unix.so nullok yescrypt
session optional pam_keyinit.so revoke
session include login
'';
}

View file

@ -11,10 +11,10 @@
CPU_MIN_PERF_ON_AC=0;
CPU_MAX_PERF_ON_AC=60;
CPU_MIN_PERF_ON_BAT=0;
CPU_MAX_PERF_ON_BAT=50;
CPU_MAX_PERF_ON_BAT=100;
CPU_BOOST_ON_AC=1;
CPU_BOOST_ON_BAT=1;
CPU_BOOST_ON_BAT=0;
PLATFORM_PROFILE_ON_AC= "balanced";
PLATFORM_PROFILE_ON_BAT= "cool";

View file

@ -7,6 +7,8 @@
idevicerestore
# USER PACKAGES
filezilla
netbird
netbird-ui
];