Compare commits

...

2 commits

Author SHA1 Message Date
78ab704ca3 nixos/gnupg: create 2024-07-28 23:22:53 +02:00
f89c97d3a1 pkgs/mkScriptOverride: init 2024-07-28 23:11:38 +02:00
4 changed files with 46 additions and 0 deletions

View file

@ -19,6 +19,7 @@
../nix-os/xdg-default-apps.nix ../nix-os/xdg-default-apps.nix
../nix-os/services/nix-binary-cache.nix ../nix-os/services/nix-binary-cache.nix
../nix-os/udev.nix ../nix-os/udev.nix
../nix-os/gnupg.nix
"${inputs.nixos-vscode-server}" "${inputs.nixos-vscode-server}"
]; ];

View file

@ -8,6 +8,7 @@
../nix-os/adb.nix ../nix-os/adb.nix
../nix-os/locale.nix ../nix-os/locale.nix
../nix-os/shell.nix ../nix-os/shell.nix
../nix-os/gnupg.nix
../nix-os/desktopManagers/gnome.nix ../nix-os/desktopManagers/gnome.nix
../nix-os/displayManagers/gdm.nix ../nix-os/displayManagers/gdm.nix

15
nix-os/gnupg.nix Normal file
View file

@ -0,0 +1,15 @@
{ pkgs, ... }:
{
config = {
# Use pcscd for smartcard support
services.pcscd.enable = true;
environment.systemPackages = [(
pkgs.gnupg.overrideAttrs (superAttrs: {
configureFlags = superAttrs.configureFlags or []
++ [ "--disable-ccid-driver" ];
})
)];
};
}

View file

@ -0,0 +1,29 @@
{
lib,
stdenv,
}:
{
src,
script,
...
} @ args:
lib.hiPrio (stdenv.mkDerivation (
{
src = src;
name = "${src.name}-script-override";
phases = [ "installPhase" "scriptOverridePhase" ];
installPhase = ''
runHook preInstall
cp -r $src $out
chmod u+w -R $out
runHook postInstall
'';
scriptOverridePhase = script;
} // lib.removeAttrs args [
"pkg"
"commands"
]
))