Tweaks and leftover bits
This commit is contained in:
parent
2d4ebe3370
commit
39992187a6
4 changed files with 21 additions and 5 deletions
12
nixos/overlays/default.nix
Normal file
12
nixos/overlays/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
# The following is taken from: https://nixos-and-flakes.thiscute.world/nixpkgs/overlays
|
||||
|
||||
# import all nix files in the current folder, and execute them with args as parameters
|
||||
# The return value is a list of all execution results, which is the list of overlays
|
||||
|
||||
args:
|
||||
# execute and import all overlay files in the current directory with the given args
|
||||
builtins.map
|
||||
(f: (import (./. + "/${f}") args)) # execute and import the overlay file
|
||||
(builtins.filter # find all overlay files in the current directory
|
||||
(f: f != "default.nix")
|
||||
(builtins.attrNames (builtins.readDir ./.)))
|
Loading…
Add table
Add a link
Reference in a new issue