mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-03-01 00:31:14 +01:00
feat: overlays
This commit is contained in:
parent
d9ec7e117d
commit
8a9549f814
@ -22,8 +22,23 @@ Let's first understand how to instantiate a non-global nixpkgs instance. The mos
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
|
||||
# a more complex example (cross-compiling)
|
||||
# nixpkgs with custom overlays
|
||||
pkgs-yyy = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
|
||||
overlays = [
|
||||
(self: super: {
|
||||
google-chrome = super.google-chrome.override {
|
||||
commandLineArgs =
|
||||
"--proxy-server='https=127.0.0.1:3128;http=127.0.0.1:3128'";
|
||||
};
|
||||
# ... other overlays
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
# a more complex example (cross-compiling)
|
||||
pkgs-zzz = import nixpkgs {
|
||||
localSystem = "x86_64-linux";
|
||||
crossSystem = {
|
||||
config = "riscv64-unknown-linux-gnu";
|
||||
|
@ -22,8 +22,23 @@
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
|
||||
# a more complex example(cross-compiling)
|
||||
# nixpkgs with custom overlays
|
||||
pkgs-yyy = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
|
||||
overlays = [
|
||||
(self: super: {
|
||||
google-chrome = super.google-chrome.override {
|
||||
commandLineArgs =
|
||||
"--proxy-server='https=127.0.0.1:3128;http=127.0.0.1:3128'";
|
||||
};
|
||||
# ... other overlays
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
# a more complex example (cross-compiling)
|
||||
pkgs-zzz = import nixpkgs {
|
||||
localSystem = "x86_64-linux";
|
||||
crossSystem = {
|
||||
config = "riscv64-unknown-linux-gnu";
|
||||
|
Loading…
Reference in New Issue
Block a user