diff options
author | Azat Bahawi <azat@bahawi.net> | 2024-07-21 20:07:08 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2024-07-21 20:07:08 +0300 |
commit | b33b1ea8ef5d5511e34fed41ad9a8199d0d58331 (patch) | |
tree | 9195b87cbfc135a85b56f0a415efa23e504f8c40 /modules/common | |
parent | 2024-07-14 (diff) |
2024-07-21
Diffstat (limited to 'modules/common')
-rw-r--r-- | modules/common/nix.nix | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/modules/common/nix.nix b/modules/common/nix.nix index fec9b80..233edda 100644 --- a/modules/common/nix.nix +++ b/modules/common/nix.nix @@ -24,36 +24,11 @@ in config = let - useNixpkgs = - nixpkgs: - import nixpkgs { - inherit (config.nixpkgs) config; - inherit (this) system; - }; - - pkgsLocal = useNixpkgs "${config.my.home}/src/nixpkgs"; # Impure! - pkgsMaster = useNixpkgs inputs.nixpkgs-master; - pkgsStable = useNixpkgs inputs.nixpkgs-stable; - pkgsRev = - rev: hash: - useNixpkgs ( - pkgs.fetchFromGitHub { - owner = "NixOS"; - repo = "nixpkgs"; - inherit rev hash; - } - ); - pkgsPR = pr: pkgsRev "refs/pull/${toString pr}/head"; + pkgsLocal = packages.useNixpkgs "${config.my.home}/src/nixpkgs"; # Impure! in { _module.args = { - inherit - pkgsLocal - pkgsMaster - pkgsStable - pkgsRev - pkgsPR - ; + inherit pkgsLocal; }; hm = { @@ -126,12 +101,12 @@ in overlays = with inputs; [ self.overlays.default - (_: _prev: { - # Global PR package overrides go here. Example: - # ``` - # inherit (pkgsPR 309018 "sha256-x3ATxjrTVdaX5eo9P6pz+8/W6D2TNYzvjZpOBa3ZRI8=") endlessh-go; - # ``` - }) + # (_: _prev: with packages; { + # # Global PR package overrides go here. Example: + # # ``` + # # inherit (package.formPR 309018 "sha256-x3ATxjrTVdaX5eo9P6pz+8/W6D2TNYzvjZpOBa3ZRI8=") endlessh-go; + # # ``` + # }) ]; }; |