overlays/nix: init from system/nix
This commit is contained in:
parent
f8b2b091ef
commit
ff5273b720
3 changed files with 15 additions and 11 deletions
|
|
@ -1,16 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
nix = rec {
|
nix = rec {
|
||||||
# XXX: remove after upstream fixes https://github.com/NixOS/nix/issues/5728
|
package = pkgs.nixUnstable;
|
||||||
package = pkgs.nixUnstable.overrideAttrs(_: rec {
|
|
||||||
version = "2.5${suffix}";
|
|
||||||
suffix = "pre20211007_${lib.substring 0 7 src.rev}";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "NixOS";
|
|
||||||
repo = "nix";
|
|
||||||
rev = "844dd901a7debe8b03ec93a7f717b6c4038dc572";
|
|
||||||
sha256 = "sha256-fe1B4lXkS6/UfpO0rJHwLC06zhOPrdSh4s9PmQ1JgPo=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
binaryCaches = [
|
binaryCaches = [
|
||||||
"https://cache.nixos.org?priority=10"
|
"https://cache.nixos.org?priority=10"
|
||||||
"https://lava.cachix.org"
|
"https://lava.cachix.org"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
builtins.map (path: import path) [
|
builtins.map (path: import path) [
|
||||||
./discord.nix
|
./discord.nix
|
||||||
./material-icons.nix
|
./material-icons.nix
|
||||||
|
./nix.nix
|
||||||
./picom.nix
|
./picom.nix
|
||||||
./rofi.nix
|
./rofi.nix
|
||||||
./xinit.nix
|
./xinit.nix
|
||||||
|
|
|
||||||
13
overlays/nix.nix
Normal file
13
overlays/nix.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# TODO: remove after upstream fixes https://github.com/NixOS/nix/issues/5728
|
||||||
|
self: super: {
|
||||||
|
nixUnstable = super.nixUnstable.overrideAttrs(_: rec {
|
||||||
|
version = "2.5${suffix}";
|
||||||
|
suffix = "pre20211007_${self.lib.substring 0 7 src.rev}";
|
||||||
|
src = self.fetchFromGitHub {
|
||||||
|
owner = "NixOS";
|
||||||
|
repo = "nix";
|
||||||
|
rev = "844dd901a7debe8b03ec93a7f717b6c4038dc572";
|
||||||
|
sha256 = "sha256-fe1B4lXkS6/UfpO0rJHwLC06zhOPrdSh4s9PmQ1JgPo=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue