fix: add overlay to both laptop and pc
This commit is contained in:
parent
0bfbc32900
commit
1e99819b59
3 changed files with 20 additions and 16 deletions
18
common/ccid-overlay.nix
Normal file
18
common/ccid-overlay.nix
Normal file
|
|
@ -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
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
../../modules/plasma
|
../../modules/plasma
|
||||||
|
|
||||||
../../common
|
../../common
|
||||||
|
../../common/ccid-overlay.nix
|
||||||
|
|
||||||
./restic.nix
|
./restic.nix
|
||||||
];
|
];
|
||||||
|
|
@ -48,22 +49,6 @@
|
||||||
nvidia.acceptLicense = true;
|
nvidia.acceptLicense = true;
|
||||||
cudaSupport = 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 = {
|
networking = {
|
||||||
hostName = "lambdaOS"; # Define your hostname.
|
hostName = "lambdaOS"; # Define your hostname.
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
../../common
|
../../common
|
||||||
|
../../common/ccid-overlay.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue