Flake: Reorganize overlays
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -11,9 +11,7 @@
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, sops-nix, me-emacs, nix-darwin, home-manager }@attrs: let
|
||||
hydraGitea = import ./overlays/hydra.nix;
|
||||
nvidiaContainer = import ./overlays/nvidiacontainer.nix nixpkgs;
|
||||
me-emacs-overlay = me-emacs.overlays.default;
|
||||
overlays = import ./overlays/default.nix attrs;
|
||||
|
||||
# Configuration for `nixpkgs`
|
||||
nixpkgsConfig = {
|
||||
@@ -30,7 +28,10 @@
|
||||
modules =
|
||||
[
|
||||
({ config, pkgs, ... }: {
|
||||
nixpkgs.overlays = [ hydraGitea nvidiaContainer ];
|
||||
nixpkgs.overlays = [
|
||||
overlays.hydra
|
||||
overlays.nvidiaContainer
|
||||
];
|
||||
})
|
||||
./machines/hippocampus/configuration.nix
|
||||
sops-nix.nixosModules.sops
|
||||
@@ -42,7 +43,7 @@
|
||||
modules =
|
||||
[
|
||||
({ config, pkgs, ... }: {
|
||||
nixpkgs.overlays = [ me-emacs-overlay ];
|
||||
nixpkgs.overlays = [ overlays.emacs ];
|
||||
})
|
||||
./machines/universedesktop/configuration.nix
|
||||
sops-nix.nixosModules.sops
|
||||
@@ -57,7 +58,7 @@
|
||||
modules = [
|
||||
./machines/universeair/configuration.nix
|
||||
({ config, pkgs, ... }: {
|
||||
nixpkgs.overlays = [ me-emacs-overlay ];
|
||||
nixpkgs.overlays = [ overlays.emacs ];
|
||||
})
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
|
||||
5
overlays/default.nix
Normal file
5
overlays/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
inputs: {
|
||||
hydra = import ./hydra.nix;
|
||||
nvidiaContainer = import ./nvidiacontainer.nix inputs.nixpkgs;
|
||||
emacs = inputs.me-emacs.overlays.default;
|
||||
}
|
||||
Reference in New Issue
Block a user