first commit
This commit is contained in:
27
pages/Tech/NixOS/NixOs - Refactor Overlays.md
Normal file
27
pages/Tech/NixOS/NixOs - Refactor Overlays.md
Normal file
@@ -0,0 +1,27 @@
|
||||
tags:: nixos/overlays
|
||||
|
||||
- https://github.com/Misterio77/nix-starter-configs/tree/main/standard
|
||||
- can aoveralys be applied flake-wide?
|
||||
- in nixos config `nixpkgs.overlays = builtins.attrValues outputs.overlays;`
|
||||
- in HM `overlays = builtins.attrValues outputs.overlays;`
|
||||
- Shouldn't this autoinherit all overlays?
|
||||
|
||||
```
|
||||
mkPkgs = pkgs: extraOverlays:
|
||||
|
||||
import pkgs {
|
||||
|
||||
inherit system;
|
||||
|
||||
config.allowUnfree = true; # forgive me Stallman senpai
|
||||
|
||||
overlays = extraOverlays ++ (lib.attrValues self.overlays);
|
||||
|
||||
};
|
||||
|
||||
pkgs = mkPkgs nixpkgs [self.overlay];
|
||||
|
||||
pkgs' = mkPkgs nixpkgs-unstable [];
|
||||
```
|
||||
THis looks like it might be the right mixer
|
||||
https://github.com/jboyens/dotfiles/blob/54b33e81daa6a30f101301222757fff87acbb52b/flake.nix#L73:~:text=%23%20flake.nix%20---%20the,133
|
||||
Reference in New Issue
Block a user