diff --git a/common/ccid-overlay.nix b/common/ccid-overlay.nix new file mode 100644 index 0000000..eb4c029 --- /dev/null +++ b/common/ccid-overlay.nix @@ -0,0 +1,18 @@ +{ config, pkgs, ... }: { + nixpkgs.overlays = [ + (self: super: { + ccid = super.ccid.overrideAttrs (old: rec { + pname = "ccid"; + version = "1.5.5"; + src = super.fetchurl { + url = "https://ccid.apdu.fr/files/${pname}-${version}.tar.bz2"; + hash = "sha256-GUcI91/jadRd18Feiz6Kfbi0nPxVV1dMoqLnbvEsoMo="; + }; + postPatch = '' + patchShebangs . + substituteInPlace src/Makefile.in --replace-fail /bin/echo echo + ''; + }); + }) + ]; +} diff --git a/hosts/lambdaos/configuration.nix b/hosts/lambdaos/configuration.nix index a2b2e22..03bab58 100644 --- a/hosts/lambdaos/configuration.nix +++ b/hosts/lambdaos/configuration.nix @@ -12,6 +12,7 @@ ../../modules/plasma ../../common + ../../common/ccid-overlay.nix ./restic.nix ]; @@ -48,22 +49,6 @@ nvidia.acceptLicense = true; cudaSupport = true; }; - nixpkgs.overlays = [ - (self: super: { - ccid = super.ccid.overrideAttrs (old: rec { - pname = "ccid"; - version = "1.5.5"; - src = super.fetchurl { - url = "https://ccid.apdu.fr/files/${pname}-${version}.tar.bz2"; - hash = "sha256-GUcI91/jadRd18Feiz6Kfbi0nPxVV1dMoqLnbvEsoMo="; - }; - postPatch = '' - patchShebangs . - substituteInPlace src/Makefile.in --replace-fail /bin/echo echo - ''; - }); - }) - ]; networking = { hostName = "lambdaOS"; # Define your hostname. diff --git a/hosts/muos/configuration.nix b/hosts/muos/configuration.nix index 5a42284..dd4cd37 100644 --- a/hosts/muos/configuration.nix +++ b/hosts/muos/configuration.nix @@ -12,6 +12,7 @@ ./hardware-configuration.nix ../../common + ../../common/ccid-overlay.nix ];