Initial commit

This commit is contained in:
Mats Rauhala 2022-01-30 11:19:31 +02:00
commit 129fcc5eb2
2 changed files with 27 additions and 0 deletions

16
fix_pam_overlay.nix Normal file
View File

@ -0,0 +1,16 @@
# https://github.com/NixOS/nixpkgs/pull/156974
# https://github.com/NixOS/nixpkgs/pull/156974#issuecomment-1024605671
final: prev:
let
patchedPkgs = import (builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/ffdadd3ef9167657657d60daf3fe0f1b3176402d.tar.gz";
sha256 = "1nrz4vzjsf3n8wlnxskgcgcvpwaymrlff690f5njm4nl0rv22hkh";
}) {
inherit (prev) system config;
# inherit (prev) overlays; # not sure
};
patchedPam = patchedPkgs.pam;
in {
xsecurelock = prev.xsecurelock.override { pam = patchedPam; };
# apply the same patch to other packages
}

11
flake.nix Normal file
View File

@ -0,0 +1,11 @@
# https://github.com/NixOS/nixpkgs/pull/156974
# https://github.com/NixOS/nixpkgs/pull/156974#issuecomment-1024605671
{
description = "A temporary fix for broken lock screens";
outputs = { self, nixpkgs }: {
overlay = import ./fix_pam_overlay.nix;
};
}