Move overlays.nix to common

This commit is contained in:
2023-04-18 18:46:01 +02:00
committed by Rodrigo Arias Mallo
parent f7b18098b1
commit 480dd95d9b
3 changed files with 1 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
./boot.nix
./fs.nix
./hw.nix
./overlays.nix
./users.nix
];

25
common/overlays.nix Normal file
View File

@@ -0,0 +1,25 @@
{ options, ... }:
let
bscpkgsSrc = builtins.fetchTarball "https://pm.bsc.es/gitlab/rarias/bscpkgs/-/archive/master/bscpkgs-master.tar.gz";
bscpkgs = import "${bscpkgsSrc}/overlay.nix";
xeon07Overlay = (self: super: {
slurm = super.bsc.slurm-16-05-8-1;
});
in
{
nix.nixPath =
# Prepend default nixPath values.
options.nix.nixPath.default ++
# Append our nixpkgs-overlays.
[ "nixpkgs-overlays=/etc/nixos/overlays-compat/" ]
;
nixpkgs.overlays = [
bscpkgs xeon07Overlay
];
}