mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 09:36:14 +01:00
2998847634
Bumps `nixpkgs-unstable`, `nixpkgs-stable`, `home-manager-stable`, `home-manager-unstable`. Signed-off-by: magic_rb <magic_rb@redalder.org>
21 lines
451 B
Nix
21 lines
451 B
Nix
{
|
|
writeShellScript,
|
|
symlinkJoin,
|
|
nixVersions,
|
|
makeWrapper,
|
|
nixos-rebuild,
|
|
lib,
|
|
}:
|
|
lib.fix (self: {
|
|
nix = symlinkJoin {
|
|
name = "nix";
|
|
paths = [nixVersions.latest];
|
|
buildInputs = [makeWrapper];
|
|
postBuild = ''
|
|
mv $out/bin/nix $out/bin/.nix-unwrapped
|
|
cp ${writeShellScript "nix" (builtins.readFile ./nix-secret-wrapper.sh)} $out/bin/nix
|
|
'';
|
|
};
|
|
nixos-rebuild = nixos-rebuild.override {nix = self.nix;};
|
|
})
|