mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Overlays] Add global overlays configuration
This commit is contained in:
parent
26d812779f
commit
08515ffd95
2 changed files with 31 additions and 1 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
./hardening.nix
|
./hardening.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./laptop.nix
|
./laptop.nix
|
||||||
# ./overlays.nix
|
./overlays.nix
|
||||||
./non-persistence.nix
|
./non-persistence.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
30
overlays.nix
Normal file
30
overlays.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{config, pkgs, options, lib, ...}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.aviallon.overlays;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.aviallon.overlays = {
|
||||||
|
enable = mkOption {
|
||||||
|
default = true;
|
||||||
|
type = types.bool;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
nix.nixPath =
|
||||||
|
# Prepend default nixPath values.
|
||||||
|
options.nix.nixPath.default ++
|
||||||
|
# Append our nixpkgs-overlays.
|
||||||
|
[ "nixpkgs-overlays=/etc/nixos/overlays-compat/" ]
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
# (self: super: {
|
||||||
|
# nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
||||||
|
# inherit pkgs;
|
||||||
|
# };
|
||||||
|
# })
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue